package com.zhisheng.web17.demos.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * 创建者： 智晟全哥
 */

@RestControllerAdvice
public class MyExHandler {

    @ExceptionHandler(Exception.class)

    public String doHandler(Exception e){
        e.printStackTrace();
        return "处理了....";
    }

}
